
import jsonpath

data = {'json1':{'json2':{'json3':{'json4':'python'}}}}

data_json = jsonpath.jsonpath(data,'$..json4')


print(data_json)


















